#!/bin/bash

echo "===================================="
echo "文档清理脚本"
echo "===================================="
echo ""
echo "将删除 20 个重复/过时的文档"
echo "保留 16 个核心文档"
echo ""
read -p "按回车继续..."

echo ""
echo "[1/2] 删除根目录无效文档..."

rm -f "ALL_FEATURES.md"
rm -f "LATEST_UPDATES.md"
rm -f "README_IMPROVEMENTS.md"
rm -f "FEATURE_SUMMARY.md"
rm -f "QUESTIONS_ANSWERED.md"
rm -f "START_USING_NOW.md"
rm -f "ORGANIZATION_SUMMARY.md"
rm -f "VERIFICATION_REPORT.md"

echo "  已删除 8 个文件"

echo ""
echo "[2/2] 删除docs/目录无效文档..."

rm -f "docs/HOW_TO_ORGANIZE.md"
rm -f "docs/ORGANIZATION_COMPLETE.md"
rm -f "docs/FINAL_SUMMARY.md"
rm -f "docs/PROJECT_STRUCTURE.md"
rm -f "docs/README_PROJECT.md"
rm -f "docs/QUICKSTART.md"
rm -f "docs/QUICK_FIX.md"
rm -f "docs/APPLEDB_ISSUE.md"
rm -f "docs/UPDATE_LOG.md"
rm -f "docs/DEVICE_FRIENDLY_NAMES.md"
rm -f "docs/MULTI_RECEIVER_EMAIL.md"
rm -f "docs/LOG_IMPROVEMENTS.md"

echo "  已删除 12 个文件"

echo ""
echo "===================================="
echo "清理完成！"
echo "===================================="
echo ""
echo "保留文档:"
echo "  根目录: 5 个"
echo "  docs/: 11 个"
echo "  总计: 16 个"
echo ""
echo "查看清理计划: CLEANUP_PLAN.md"
echo ""

